<ion-view title="修改密码" hide-back-button="true">
  <ion-nav-buttons side="left">
    <a class="button button-clear" ui-sref="mine.info">
      <i class="icon ion-chevron-left"></i>
    </a>
  </ion-nav-buttons>
  <ion-content>
    <div class="container">
      <div class="list list-inset no-padding">
        <label class="item item-input" style="border-radius: 10px; ">
          <i class="icon ion-person placeholder-icon"></i>
          <input placeholder="请输入旧密码" type="password" ng-model="oldpwd">
        </label>
        <div class="divider"></div>
        <label class="item item-input" style="border-radius: 10px">
          <i class="icon ion-ios-locked placeholder-icon"></i>
          <input placeholder="请输入新密码" type="password" ng-model="newpwd">
        </label>
        <div class="divider"></div>
        <label class="item item-input" style="border-radius: 10px">
          <i class="icon ion-ios-locked placeholder-icon"></i>
          <input placeholder="请确认新密码" type="password" ng-model="newpwd2">
        </label>
      </div>

      <div style="height: 5px"></div>

      <button class="button button-block main-background" ng-click="changePwd()" style="border-radius: 10px" ng-disabled="!oldpwd || !newpwd || !newpwd2 || oldpwd == newpwd || newpwd != newpwd2 || oldpwd.length < 6 || newpwd.length < 6  || newpwd.length > 12">
        修改密码
      </button>
    </div>
  </ion-content>
</ion-view>
